--[[

	GModRP - Real Garry's Mod Roleplay.
			By Slob187.
		

]]

   
local rules = 	{

				"Welcome to GModRP - old good RP.",
				"",
				"Items:",
				"Press R on the item to put it your inventory, and E to use.",
				"",
				"Console commands:",
				"gm_rp_chatsoundlist - Print chat sound list in console.",
				"",
				"Chat commands:",
				"/drop amount - drop money. Example: drop 10",
				"/sleep - sleep.",
				"/sit - sit.",
				"// text - ooc. Talk out of character.",
				"/y text - yell.",
				"/w text - whisper.",
				"Hotkeys:",
				"F1 - Motd",
				"F2 - Shop menu",
				"F3 - Player menu",
				"F4 - Buy a door"
				
				}  


function GMRP.Motd()


	local MotdFrame = vgui.Create("GMRPFrame")
	MotdFrame:SetSize(700, 700) 
	MotdFrame:SetTitle( "MOTD" ) 
	MotdFrame:SetPos(ScrW() / 2 - MotdFrame:GetWide() / 2, ScrH() / 2 - MotdFrame:GetTall() / 2) --:O
	MotdFrame:SetVisible( true )
	MotdFrame:SetDraggable( true )
	MotdFrame:SetBackgroundBlur(true)
	MotdFrame:ShowCloseButton(false)
	MotdFrame:AddCloseButton()
	MotdFrame:DrawList()
	MotdFrame:MakePopup() 
	MotdFrame:List_Spacing( 3 )
	MotdFrame:List_Padding( 10 )		

	
	MotdFrame:AddButton( "Donate", "gm_rp_donation" )	

	MotdFrame:AddButton( "Credits", "gm_rp_credits" )	
	


	
	
	for k, v in pairs( rules ) do
	
		local ReadThis = vgui.Create( "DLabel" )
		ReadThis:SetFont( "GModRPFontOne" )	
		ReadThis:SetText( v )
		MotdFrame:List_AddItem( ReadThis )
		
	end	

end

GMRP.command( "motd", GMRP.Motd )